﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shake.Framework.Dto
{
    public class Menu
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Icon图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 是否在新标签中打开
        /// </summary>
        public bool IsOpenNewTab { get; set; }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string Link { get; set; }

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<Menu> ChildMenus { get; set; }

        /// <summary>
        /// 是否有子菜单
        /// </summary>
        public bool HasChildMenu
        {
            get
            {
                return ChildMenus != null && ChildMenus.Count > 0;
            }
            private set { }
        }
    }
}
